home *** CD-ROM | disk | FTP | other *** search
/ PC Electronic Plus / PC Electronics Plus (Most Significant Bits)(1995).ISO / elftree / install.bat < prev    next >
DOS Batch File  |  1994-05-20  |  2KB  |  78 lines

  1. echo off
  2. REM (C) Copyright 1988-1994 by Alan Avery, Springfield, IL ALL RIGHTS RESERVED
  3. REM This installs ELFTREE in the disk/directory specified.
  4. goto ELFINST
  5. :HELP
  6. cls
  7. echo Correct Usage:
  8. echo     INSTALL (drive) (disk) (directory), where:
  9. echo  (drive) is the drive the floppy is in (A, B)
  10. echo     (NOTE: do not use a colon!)
  11. echo  (disk) is the disk to install to (C, D, E, ...)
  12. echo  (directory) is the directory to install to  (TREE, ELFTREE, etc.)
  13. echo     (NOTE: do not use a beginning backslash!)
  14. echo  Here's an example of how to correctly specify these parameters:
  15. echo     INSTALL  A C TREE
  16. goto exit
  17. :ELFINST
  18. if .%1==. goto HELP
  19. if .%1==.A: goto HELP
  20. if .%1==.a: goto HELP
  21. if .%1==.b: goto HELP
  22. if .%1==.B: goto HELP
  23. if .%2==. goto HELP
  24. REM Switch to target disk/directory.
  25. %2:
  26. if errorlevel 1 goto HELP
  27. cd \
  28. if .%3==. goto skipmd
  29. if NOT exist %3\NUL md %3
  30. :skipmd
  31. cd %3
  32. REM Copy files needed for program.
  33. cls
  34. echo  
  35. echo     Copying program files, editor, viewer(s) and sorter
  36. echo  
  37. copy %1:\ET.EXE>NUL
  38. echo echo off>ETT.BAT
  39. echo rem  DO NOT DELETE THIS FILE!!!>>ETT.BAT
  40. echo %2:\%3\ET.EXE>>ETT.BAT
  41. copy %1:\ASKET.EXE>NUL
  42. copy %1:\ELFEDIT.EXE>NUL
  43. copy %1:\ELFTREE.CHL>NUL
  44. copy %1:\VIEW*.EXE>NUL
  45. copy %1:\ETSORT.EXE>NUL
  46. if exist VIEWERS.ELF GOTO COPYAUX
  47.     echo DBF VIEWDBF.EXE>VIEWERS.ELF
  48.     echo WK? VIEWWK.EXE>>VIEWERS.ELF
  49. :COPYAUX
  50. echo  
  51. echo     Copying auxiliary files...
  52. echo  
  53. copy %1:\AUTOEXEC.DOC>NUL
  54. copy %1:\README.DOC>NUL
  55. if exist MENU.ETU copy %1:\SAMPLE.ETU>NUL
  56. if not exist MENU.ETU copy %1:\SAMPLE.ETU MENU.ETU>NUL
  57. copy %1:\SNOOZE.ELF>NUL
  58. copy %1:\ELFTREE.HLP>NUL
  59. copy %1:\ELFTREE.NTE>NUL
  60. copy %1:\DESCRIPT.ION>NUL
  61. copy %1:\TITLES.PF>NUL
  62. copy %1:\WHATSNEW.ET>NUL
  63. copy %1:\FEATURES.ET>NUL
  64. echo  
  65. echo    Copying reg/upgrade/site license forms...
  66. echo  
  67. copy %1:\REGISTER.DOC>NUL
  68. copy %1:\SITELICE.DOC>NUL
  69. copy %1:\UPGRADE.DOC>NUL
  70. cls
  71. echo        ELFTREE is successfully installed.
  72. echo  
  73. echo        To start it, type: ET   and tap [Enter]
  74. echo  
  75. echo        Please read the files README.DOC and AUTOEXEC.DOC now.
  76. :exit
  77. exit
  78.